<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

use App\Models\Admin\Notice;

class NoticeController extends Controller
{
    public function getList(Request $request)
    {
        $pageSize = $request['pageSize'];

        $noticeModel = new Notice;
        $data = $noticeModel->getList($pageSize);

        return $data;
    }

    public function handle(Request $request)
    {
        $noticeModel = new Notice;
        $result = $noticeModel->handle($request);

        return $result;
    }

    public function delete(Request $request)
    {
        $noticeModel = new Notice;
        $result = $noticeModel->deleteNotice($request);

        return $result;
    }
}
